Imports Castle.ActiveRecord

Namespace Model
    ''' <summary>
    '''	Gerado por MyGeneration usando o template ActiveRecord Object Mapper-1.0.3
    '''	Criado em 14/08/2010 00:29:38
    ''' </summary>
    ''' <remarks></remarks>

    <Serializable(), ActiveRecord("nfadicao", DynamicUpdate:=True)> _
    Public Class NfAdicao
        Inherits ActiveRecordBase(Of NfAdicao)

        Private _cd_nfadicao As Integer
        Private _adicao_numero As String
        Private _adicao_fabricante_nome As String
        Private _adicao_fabricante_pais As String
        Private _adicao_desconto As Decimal
        Private _adicao_pis As Decimal
        Private _adicao_cofins As Decimal
        Private _adicao_ii As Decimal
        Private _adicao_ipi As Decimal
        Private _adicao_peso_liquido As Decimal


        Private _Nfitems As IList(Of Model.Nfitem)

        <PrimaryKey(PrimaryKeyType.Sequence, SequenceName:="nfadicao_cd_nfadicao_seq")> _
        Public Property cd_nfadicao() As Integer
            Get
                Return _cd_nfadicao
            End Get
            Set(ByVal value As Integer)
                _cd_nfadicao = value
            End Set
        End Property

        <[Property]("adicao_numero")> _
        Public Property adicao_numero() As String
            Get
                Return _adicao_numero
            End Get
            Set(ByVal value As String)
                _adicao_numero = value
            End Set
        End Property

        <[Property]("adicao_fabricante_nome")> _
        Public Property adicao_fabricante_nome() As String
            Get
                Return _adicao_fabricante_nome
            End Get
            Set(ByVal value As String)
                _adicao_fabricante_nome = value
            End Set
        End Property

        <[Property]("adicao_fabricante_pais")> _
        Public Property adicao_fabricante_pais() As String
            Get
                Return _adicao_fabricante_pais
            End Get
            Set(ByVal value As String)
                _adicao_fabricante_pais = value
            End Set
        End Property

        <[Property]("adicao_desconto")> _
        Public Property adicao_desconto() As Decimal
            Get
                Return _adicao_desconto
            End Get
            Set(ByVal value As Decimal)
                _adicao_desconto = value
            End Set
        End Property

        <[Property]("adicao_pis")> _
        Public Property adicao_pis() As Decimal
            Get
                Return _adicao_pis
            End Get
            Set(ByVal value As Decimal)
                _adicao_pis = value
            End Set
        End Property

        <[Property]("adicao_cofins")> _
        Public Property adicao_cofins() As Decimal
            Get
                Return _adicao_cofins
            End Get
            Set(ByVal value As Decimal)
                _adicao_cofins = value
            End Set
        End Property

        <[Property]("adicao_ii")> _
        Public Property adicao_ii() As Decimal
            Get
                Return _adicao_ii
            End Get
            Set(ByVal value As Decimal)
                _adicao_ii = value
            End Set
        End Property

        <[Property]("adicao_ipi")> _
        Public Property adicao_ipi() As Decimal
            Get
                Return _adicao_ipi
            End Get
            Set(ByVal value As Decimal)
                _adicao_ipi = value
            End Set
        End Property

        <[Property]("adicao_peso_liquido")> _
        Public Property adicao_peso_liquido() As Decimal
            Get
                Return _adicao_peso_liquido
            End Get
            Set(ByVal value As Decimal)
                _adicao_peso_liquido = value
            End Set
        End Property

        <HasMany(GetType(Model.Nfitem), Table:="nfitem", ColumnKey:="cd_nfadicao", Inverse:=True, Lazy:=True)> _
        Public Property Nfitem() As IList(Of Model.Nfitem)
            Get
                Return _Nfitems
            End Get
            Set(ByVal value As IList(Of Model.Nfitem))
                _Nfitems = value
            End Set
        End Property
    End Class
End Namespace